from pymemcache import serde
from pymemcache.client.base import Client

memcache_client = Client(
    "127.0.0.1:12000",
    serializer=serde.python_memcache_serializer,
    deserializer=serde.python_memcache_deserializer,
)

detection_info = {}

detection_info["url"] = "./sources/test_2.mp4"
detection_info["type"] = "sleep"
detection_info["stream_name"] = "name"
detection_info["time_threshold"] = 5
detection_info["error_threshold"] = 0.1

memcache_client.set("detection_info", detection_info)
memcache_client.set("DetectionChanged", True)
